<div id="mainnav">
	<div id="mainnav-menu-wrap">
		<div class="nano">
			<div class="nano-content">
				<ul id="mainnav-menu" class="list-group">
					<!--Menu list item-->
					<li>
						<a href="#" name='1'>
							<i class="fa fa-file-o"></i>
							<span class="menu-title">维修订单管理</span>
							<i class="arrow"></i>
						</a>
						
						<!--Submenu-->
						<ul class="collapse">
							<li><a href="javascript:go_url('repair_order_datas.html',1,0)">订单数据</a></li>
							<li><a href="javascript:go_url('repair_order_detail_door.html',1,1)">上门订单</a></li>
							<li><a href="javascript:go_url('repair_order_detail_shop.html?a=1',1,2)">到店订单</a></li>
						</ul>
					</li>
					
					<li>
						<a href="#" name='2'>
							<i class="fa fa-file"></i>
							<span class="menu-title">回收订单数据</span>
							<i class="arrow"></i>
						</a>
						
						<!--Submenu-->
						<ul class="collapse">
							<li><a href="javascript:go_url('recycle_order_datas.html',2,0)">回收订单数据</a></li>
							<li><a href="javascript:go_url('recycle_order_detail_door.html?way=1',2,1)">上门订单</a></li>
							<li><a href="javascript:go_url('recycle_order_detail_door.html?way=2',2,2)">到店订单</a></li>
						</ul>
					</li>
					
					<li>
						<a href="javascript:go_url('union_business.html',3)" name='3'>
							<i class="fa fa-users"></i>
							<span class="menu-title">联盟商户管理</span>
						</a>
					</li>
					
					<li>
						<a href="javascript:go_url('self_engineer_business.html',4)" name='4'>
							<i class="fa fa-user"></i>
							<span class="menu-title">自有工程师</span>
						</a>
					</li>
					
					<li>
						<a href="javascript:go_url('free_engineer_business.html','5')" name='5'>
							<i class="fa fa-street-view"></i>
							<span class="menu-title">滴滴工程师</span>
						</a>
					</li>
					
					<li>
						<a href="javascript:go_url('city_open.html','6')" name='6'>
							<i class="fa fa-university"></i>
							<span class="menu-title">区域开放设置</span>
						</a>
					</li>
					
					<li>
						<a href="javascript:go_url('account.html','7')" name='7'>
							<i class="fa fa-money"></i>
							<span class="menu-title">账户管理</span>
						</a>
					</li>
					<!--
					<li>
						<a href="javascript:go_url('city_open.html','city_open')" name='tixian_shenqing'>
							<i class="fa fa-money"></i>
							<span class="menu-title">滴滴工程师申请</span>
						</a>
					</li>-->
				</ul>
			</div>
		</div>
	</div>
</div>


<script>
	//初始化左侧菜单
	function init_left_menu(i1, i2) {
		i1 = i1 - 1;
		if (i2) {
			$('#mainnav-menu').find('.collapse').eq(i1).addClass('in');
			$('#mainnav-menu').find('.collapse').eq(i1).find('li').eq(i2).addClass('active-link');
		} else {
			$('#mainnav-menu').children().removeClass('active-link');
			$('#mainnav-menu').children().eq(i1).addClass('active-link');
		}
		sessionStorage.setItem("i1", '');
		sessionStorage.setItem("i2", '');
	}
	
	var i1 = sessionStorage.getItem("i1") || 1;
	var i2 = sessionStorage.getItem("i2") || 0;
	
	init_left_menu(i1, i2);
	
	//页面跳转
	function go_url(url, i1, i2) {
		sessionStorage.setItem("i1", i1);
		if (i2 != undefined) sessionStorage.setItem("i2", i2);
		location.href = url;
	}
</script>